﻿using System.Web.Mvc;
using IterationLife.Extensions.ControllerBase;
using IterationLife.FootballTeaching.Queries;
using IterationLife.PlatformBackEnd.AppServices.Contracts.FootballTeachings;
using IterationLife.PlatformBackEnd.AppServices.Dtos.FootballTeachings;

namespace IterationLife.PlatformBackEnd.WebSite.Areas.FootballTeachings.Controllers
{
    /// <summary>
    /// 课程分类控制器
    /// </summary>
    public class CourseCategoryController : FormControllerBase<CourseCategoryDto, CourseCategoryQuery>
    {
        /// <summary>
        /// 初始化课程分类控制器
        /// </summary>
        /// <param name="service">课程分类服务</param>
        public CourseCategoryController(ICourseCategoryService service)
            : base(service)
        {
            CourseCategoryService = service;
        }

        /// <summary>
        /// 课程分类服务
        /// </summary>
        public ICourseCategoryService CourseCategoryService { get; private set; }

        /// <summary>
        /// 弹出层首页
        /// </summary>
        public ActionResult DialogIndex(string excludeIds)
        {
            return PartialView("Dialogs/Index", new CourseCategoryDto { ExcludeIds = excludeIds });
        }

    }
}